package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpSession;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface LoginFeign {

    //@RequestMapping(value ="/wechat/loginenter",method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE )
    /*@PostMapping("/wechat/loginenter")
    String login(UserInfoQueryVo userInfo);*/
    @PostMapping("/wechat/forgetpassword")
    String forgetpassword(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result") BindingResult result,@RequestParam("session") HttpSession session);

    @PostMapping("/wechat/loginenter")
    String login(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result")BindingResult result);

     @RequestMapping("/wechat/getrandomcode")
    String getRandomCode();

}
